﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


public class VideoFormatDto
{
    public string Hex { get; set; }

    public string Name { get; set; }

    public string ArrowName { get { return "◀" + Name + "▶"; } }
}

public class VideoHelper
{

    public static List<VideoFormatDto> GetTransferMode()
    {
        List<VideoFormatDto> list = new List<VideoFormatDto>();
        list.Add(new VideoFormatDto() { Hex = "0x5f", Name = "AHD" });
        list.Add(new VideoFormatDto() { Hex = "0x60", Name = "THD" });
        list.Add(new VideoFormatDto() { Hex = "0x61", Name = "CHD" });
        list.Add(new VideoFormatDto() { Hex = "0x62", Name = "CVBS" });
        return list;
    }

    public static List<VideoFormatDto> GetVideoMode()
    {
        List<VideoFormatDto> list = new List<VideoFormatDto>();
        list.Add(new VideoFormatDto() { Hex = "0x51", Name = "8M15" });
        list.Add(new VideoFormatDto() { Hex = "0x52", Name = "8M12" });
        list.Add(new VideoFormatDto() { Hex = "0x53", Name = "5M20" });
        list.Add(new VideoFormatDto() { Hex = "0x54", Name = "5M12" });
        list.Add(new VideoFormatDto() { Hex = "0x55", Name = "4M30" });
        list.Add(new VideoFormatDto() { Hex = "0x56", Name = "4M25" });
        list.Add(new VideoFormatDto() { Hex = "0x57", Name = "4M15" });
        list.Add(new VideoFormatDto() { Hex = "0x58", Name = "4M12" });
        list.Add(new VideoFormatDto() { Hex = "0x59", Name = "1080p30" });
        list.Add(new VideoFormatDto() { Hex = "0x5a", Name = "1080p25" });
        list.Add(new VideoFormatDto() { Hex = "0x5b", Name = "720p30" });
        list.Add(new VideoFormatDto() { Hex = "0x5c", Name = "720p25" });
        list.Add(new VideoFormatDto() { Hex = "0x5d", Name = "NTSC" });
        list.Add(new VideoFormatDto() { Hex = "0x5e", Name = "PAL" });
        return list;
    }
}

